Skip to content

Conversation

nicoddemus
Copy link
Member

We should not import pytest directly in internal modules, as it might cause circular references because import pytest imports many other internal modules.

This likely slipped through review.

cherry-picked from #13738.

We should not import pytest directly in internal modules, as it might cause circular references because `import pytest` imports many other internal modules.
@nicoddemus nicoddemus enabled auto-merge (squash) September 23, 2025 12:59
@RonnyPfannschmidt RonnyPfannschmidt added the skip news used on prs to opt out of the changelog requirement label Sep 23, 2025
@nicoddemus nicoddemus disabled auto-merge September 23, 2025 17:33
@nicoddemus nicoddemus merged commit e1af2c9 into pytest-dev:main Sep 23, 2025
32 of 33 checks passed
@nicoddemus nicoddemus deleted the dont-import-pytest-unittest branch September 23, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news used on prs to opt out of the changelog requirement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants